package com.tianji.promotion.service;

import com.tianji.common.domain.dto.PageDTO;
import com.tianji.promotion.domain.dto.CouponFormDTO;
import com.tianji.promotion.domain.dto.CouponIssueFormDTO;
import com.tianji.promotion.domain.po.Coupon;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.promotion.domain.query.CouponQuery;
import com.tianji.promotion.domain.vo.CouponPageVO;
import com.tianji.promotion.domain.vo.CouponVO;

import java.util.List;

/**
 * <p>
 * 优惠券的规则信息 服务类
 * </p>
 *
 * @author liuchun
 * @since 2024-10-23
 */
public interface ICouponService extends IService<Coupon> {

    //新增优惠券接口
    void addCoupons(CouponFormDTO couponFormDTO);

    //分页查询优惠券
    PageDTO<CouponPageVO> selectCouponsPage(CouponQuery query);

    //发放优惠券
    void issueCoupons(Long id, CouponIssueFormDTO dto);

    //查询所有发放中的优惠券
    List<CouponVO> listAllIssuingCoupons();
}
